#include "login.h"
#include "ui_login.h"
#include <QMovie>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include "widget.h"
Login::Login(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Login)
{
    ui->setupUi(this);
    //设置动画
    QMovie *movie =new QMovie(this);
    movie->setFileName("D:/qtthings/QQ");
    movie->start();
    ui->label->setMovie(movie);
    this->setWindowTitle("登录界面");

   this->gamew = new Widget;
   gamew->hide();
   this->connect(ui->pushButton_2,SIGNAL(clicked()),this,SLOT(startclick()));

}

Login::~Login()
{
    delete ui;
}
void Login::startclick()
{
    gamew->show();
}
